#include "PowerUps.h"

void DamageMultiplier::apply()
{
    mTarget->setDamage(mTarget->getDamage() * mMultiplier);
}

void DamageMultiplier::remove()
{
    mTarget->setDamage(mTarget->getDamage() / mMultiplier);
}


void SpeedMultiplier::apply()
{
    mTarget->setSpeed( mTarget->getSpeed() * mMultiplier);
}

void SpeedMultiplier::remove()
{
    mTarget->setSpeed( mTarget->getSpeed() / mMultiplier);
}

void Shield::apply()
{
    mTarget->setShield(mTarget->getShield() + mEnergy);
}

void Shield::remove()
{
    mTarget->setShield(mTarget->getShield() - mEnergy);
}
